package com.chancein.cloud.report.charts.common.util;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

import static com.chancein.cloud.report.charts.config.InitParamConfig.*;

/**
 * 日期处理工具
 *
 * @author: LiaoZiHao
 * @date: 2023/8/4 23:34
 * Copyright © 2022 Hundsun Technologies Inc. All Rights Reserved
 */
public class DateUtil {
    /**
     * 获取能够准确识别的项目所需标准日期
     *
     * @date 2023/8/4 23:37
     * @author liaozihao
     * @param day 日期日子
     * @return {@link String}
     */
    public static String fetchStandardDate(Integer day) {
        LocalDate date = LocalDate.of(Year, Month, day);
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        return date.format(formatter);
    }
}
